package com.example.tellwin.media;

import com.danikula.videocache.HttpProxyCacheServer;
import com.example.tellwin.MainApplication;

/**
 * @author : LinZePeng
 * @date : 2020/12/7
 * @Describe ：
 **/
public class HttpProxyCacheUtil{
    private static HttpProxyCacheServer audioProxy;

    public static HttpProxyCacheServer getAudioProxy() {
        if (audioProxy== null) {
           /* audioProxy= new HttpProxyCacheServer.Builder(MainApplication.getContext())
                    .cacheDirectory(CachesUtil.getMediaCacheFile(CachesUtil.AUDIO))
                    .maxCacheSize(1024 * 1024 * 1024) // 缓存大小
                    .fileNameGenerator(new CacheFileNameGenerator())
                    .build();*/
        }
        return audioProxy;
    }
}
